package day11HomeWork;

import java.util.LinkedList;

public class LikeditDemo {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();
        list.add(100);
        list.add(200);
        list.addFirst(500);
        list.addLast(100);

        int first = list.getFirst();
        int last = list.getLast();

        list.removeFirst();
        list.removeLast();

    }
}